<?php

require ('class/config.php');
$id = htmlentities(mysql_real_escape_string($_GET['id']));

$sql = mysql_query("SELECT * FROM `berita` WHERE `idberita` = '".$id."'");
$row = mysql_fetch_array($sql);
?>
<div id="content">
	<h2><?php echo $row['judul']; ?></h2>
	<div id="left">
	<div class="post">
	<?php 
		echo '<img src="file/berita/'.$row['gambar'].'">';
		echo htmlspecialchars_decode($row['isi']);
	?>
	</div>
</div>
</div>
